import axios from  "../model/axios";
import type UserInterface from "@/model/interface/userInterface";


export  const  userLogin = (data:UserInterface)=>{
    return  axios({
        method:"post",
        url:"/api/users/login",
        data
    })
}

export   const  userAdd  = (data:UserInterface)=>{
    return  axios({
        method:"post",
        url:"/api/users/addstudent",
        data
    })
}

export  const  userAddMany = (data:UserInterface)=>{
    return  axios({
        method:"post",
        url:"/api/users/addmany",
        data,
    })

}
//studentlist
export   const  studentList  = (params:UserInterface)=>{
    return  axios({
        method:"get",
        url:"/api/users/studentlist",
        params
    })
}